import sys
from SmallCV import ColorType, ConvertType, Scalar, Mat, cv

cv = cv()
filePath = sys.argv[1]
fileRoute = filePath.split('.')
splitPart = fileRoute[len(fileRoute)-2].split('/')
fileName = splitPart[len(splitPart)-1].split('\\')
print 'File name: ' + fileName[len(fileName)-1]
sourceImage = cv.imread(filePath)
cv.imwrite('result.bmp', sourceImage)